dataAs

fun <TData> dataAs(part: UIMessagePart.Data, serializer: KSerializer<TData>): TData